Package-level declarations

Types

Link copied to clipboard
data class Parameter(val name: String, val type: Parameter.Type, val description: String, val required: Boolean = true, val enum: List<String>? = null, val elementType: Parameter.Type? = null)

Represents a parameter for configuring tools or functions, including its name, type, description, and additional metadata such as whether it is required or accepts enumerated values.

Link copied to clipboard
class Tool(val name: String, val description: String, val parameters: List<Parameter>, handler: suspend (Map<String, Any>) -> ToolResult)

Represents an executable tool with a defined structure, parameters, and result handler.

Link copied to clipboard
sealed interface ToolResult

Represents the result of executing a tool.

Functions

Link copied to clipboard

Converts a KType to a pair of Parameter.Type representations.